<script>
   $(document).ready(function(){
      $('#etalage').etalage({
         thumb_image_width: 200,
			thumb_image_height: 200,
			source_image_width: 900,
			source_image_height: 900,
			zoom_area_width: 468,
			zoom_area_height: 468,
			show_icon: false,
			autoplay: false,
			keyboard: false
      });
   })
</script>
<?if(isset($not_found)) echo $not_found?>
<?else{?>
<div class="main-detail relative">
   <div class="pro-title">
      <em class="left-gym"></em>
      <em class="right-gym"></em>
      <span>Chi tiết sản phẩm</span>
   </div>
   <div class="detail-pro relative">
      <div class="pro-pic full-left">
         <ul id="etalage">
         <?
         $arr_name = explode(',',$pro_pic);
         foreach($arr_name as $value){?>
            <li>
               <img class="etalage_thumb_image" src="/pictures/product/thumbnail/<?=$value?>" />
               <img class="etalage_source_image" src="/pictures/product/detail/<?=$value?>" />  
				</li>
         <?}?>
			</ul>
      </div>
      <div class="pro-info full-right">
         <p><span class="yellow"><?=$pro_name?></span></p>
         <p>Mã: <?=$pro_code?></p>
         <p>Giá bán: <?=format_number($pro_price) . 'đ'?></p>
         <?if($pro_origin != ''){?>
         <p>Xuất xứ: <?=$pro_origin?> </p>
         <?}?>
         <?if($pro_gua != ''){?>
         <p>Bảo hành: <?=$pro_gua?></p>   
         <?}?>
         <p><?=$pro_des?></p>
         <p>(*) Lưu ý : Giá trên chưa bao gồm phí vận chuyển</p>
      </div>
   </div>
   <div class="fb-like" data-href="<?='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']?>" data-width="100" data-layout="button_count" data-show-faces="false" data-send="true"></div>
   <div class="clear-fix"></div>
   
</div>
<?}?>
<div class="clear-fix"></div>
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/vi_VN/all.js#xfbml=1&appId=174176739397727";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>